This matches what GTK+ does now.
gchar **builtin_themes;
GList *list, *l;
guint i;
+ const gchar * const *dirs;
t = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
/* Builtin themes */
fill_gtk (path, t);
g_free (path);
+ dirs = g_get_system_data_dirs ();
+ for (i = 0; dirs[i]; i++)
+ {
+ path = g_build_filename (dirs[i], "themes", NULL);
+ fill_gtk (path, t);
+ g_free (path);
+ }
+
list = NULL;
g_hash_table_iter_init (&iter, t);
while (g_hash_table_iter_next (&iter, (gpointer *)&theme, NULL))